# Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING)
    add_subdirectory(tests)
elseif (TARGET netxduo)
    add_library(nx-ip-link-cmsis-eth
        ./src/iotsdk/nx_driver_cmsis_eth.c
    )

    target_include_directories(nx-ip-link-cmsis-eth
        PUBLIC
            inc
    )

    target_link_libraries(nx-ip-link-cmsis-eth
        PUBLIC
            cmsis-pack-platform
            netxduo
            threadx
    )
endif()
